package org.cangku.dao;

import org.apache.ibatis.annotations.Param;
import org.cangku.entity.Xslinshi;

import java.util.List;

public interface XsLinShiDao {
    /*往销售临时表中插入数据*/
    public int insert(Xslinshi xls);
    /*如果添加的商品一样修改数量并修改总金额 1.判断是否存在   2.修改*/
    public int extendInfo(Xslinshi xslinshi);
    public int updateNumAndzMoney(Xslinshi xslinshi);
    /*查询所有要购买的商品*/
    public List<Xslinshi> query();
    /*每次刷新页面清空所有要购买的商品*/
    public int delete();
    /*得到要购买所有商品的总价钱*/
    public double getZongMoney();
    /*删除*/
    public int onedelete(@Param("dingdan") String dingdan,@Param("sid") int sid,@Param("size")String size);

    /*根据订单号获得该订单的总数量*/
    public int getSumCountByDanHao(String dingdan);

    /*根据单号获得临时表信息*/
    public List<Xslinshi> getinfoByDanHao(String danhao);
}
